﻿/*CREATE TRIGGER [dbo].[Sesiones_DeletionTrigger] 
    ON [Sesiones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Sesiones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[SesionGuid] = [Sesiones_Tombstone].[SesionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Sesiones_Tombstone] 
    ([SesionGuid], DeletionDate)
    SELECT [SesionGuid], GETUTCDATE()
    FROM deleted 
END*/